package com.lkx.util;

import java.io.FileWriter;
import java.io.IOException;

public class FileRobotUtil {
	private static String savefile = "E:\\contact.txt";

	public static void saveAsFileWriter(String content) {

		FileWriter fwriter = null;
		try {
			fwriter = new FileWriter(savefile);
			fwriter.write(content);
		} catch (IOException ex) {
			ex.printStackTrace();
		} finally {
			try {
				fwriter.flush();
				fwriter.close();
			} catch (IOException ex) {
				ex.printStackTrace();
			}
		}
	}
}
